{* categories_list.tpl *}
{load_presentation_object  filename="categories_list"  assign="obj" }
{* start category list * }
<div class="box">
<p class="box-title">Choose Category</p>
<ul>
{* loop throug the list of departments * }
{section name=i  loop=$obj->mCategories }
{assign var=selected value="" }
{* verify  if the department is selected to decide what css style to use * }
{if ($obj->mSelectedCategory == $obj->mCategories[i].category_id)}
{assign var=selected value="class=\"selected\" "}
{/if}
<li>
{* generate a link for new category in the list * }
<a {$selected} href="{$obj->mCategories[i].link_to_category}">
{$obj->mCategories[i].name}
</a>
</li>
{/section}
</ul>
</div>